package com.lc1993929.myhdfs.server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by LiuChang on 2017/9/1/001.
 */
public class NameNode {
    public static void main(String[] args) throws IOException {
        Map<String, Map<Long, String>> metaMap = new HashMap<>();


        ServerSocket nnServer = new ServerSocket(9000);
        System.out.println("namenode启动");
        while (true) {
            Socket sc = nnServer.accept();

            new Thread(new NameNodeHandler(sc, metaMap)).start();
        }
    }
}
